//landing page
function move_me(i){
	$(".landing-dot").removeClass("landing_dot_me2").addClass("landing_dot_me");
	$(".landing-dot:eq("+i+")")
	.removeClass("landing_dot_me")
	.addClass("landing_dot_me2")
	.click(function(){
		window.location = $(this).attr("landing_link");
	});
	
	$("#landing").find(".landing-item").each(function(){
		if ($(this).index() != i) {
			 $(this).css("opacity", 0).css("top", "-1000px").css("z-index", 1).css("transition", "all 0s cubic-bezier(0.25, 0.1, 0.25, 1) 0s;");
		} else {
			$(this).css("transition", "opacity 750ms ease 0ms").css("opacity", 1).css("top", 0).css("z-index", 2).css("transition", "all 0s cubic-bezier(0.25, 0.1, 0.25, 1) 0s;");
		}
	});

	j = (i+4)%3;
	setTimeout( "move_me("+j+")",5000 );
}

function confirm_remove(){
	if (!confirm('please confirm to delete this items')) {
		return false;
	}
}

function page_style(){
	$("#page-title").css("opacity", 1).css("margin-top", "0");
	$("#page-content").css("opacity", 1).css("left", "0");
	$("#page-text, #form_settings, #page-content img").css("opacity", 1);
}

function page_detail_style(){
	$("#tastes-detail-content-1, #tastes-detail-content-2").css("opacity", 1).css("left", "0");
}